<template>
	<!-- 提现页面 -->
	<view class="cash">
		<!-- nav -->
		<view class="nav">
			<view>当前回收币：0</view>
			<view>提现记录>></view>
		</view>
		<!-- 提现回收币 -->
		<view class="substance">
			<view class="substance-title">
				提现回收币(1回收币=1元)
			</view>
			<view class="substance-main">
				<view class="substance-icon">￥</view>
				<input class="substanceInput" type="text" placeholder="请输入要提现的回收币" />
				<view class="substanceAll">全部提现</view>
			</view>
			<view class="commission">手续费：1.00%</view>
		</view>
		<!-- 提现方式 -->
		<view class="method">
			<view class="substance-title">提现账户</view>
			<!-- 微信提现 -->
			<view class="means">
				<view class="icon iconfont icon-weixin"></view>
				<view class="meansText">提现到微信零钱</view>
				<view class="meansorder">
					<image :src="wxImgUrl" @tap="orderTap(0)" mode=""></image>
					<!-- <image src="https://huishou.68699.cn/addons/wjyk_recycle/public/static/index/yx.png" mode=""></image> -->
				</view>
			</view>
			<!-- 支付宝提现 -->
			<view class="means">
				<view class="icon iconfont icon-zhifubao"></view>
				<view class="meansText">提现到支付宝</view>
				<view class="meansorder">
					<image @tap="orderTap(1)" :src="zhifubaoImgUrl" mode=""></image>
				</view>
			</view>
		</view>
		<view class="cash-account">提现</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				wxImgUrl:"https://huishou.68699.cn/addons/wjyk_recycle/public/static/index/mx.png",//默认没选中---微信
				zhifubaoImgUrl:"https://huishou.68699.cn/addons/wjyk_recycle/public/static/index/mx.png",//默认没选中----支付宝
				orderIndex:-1,
			};
		},
		methods:{
			orderTap(id){//点击单选按钮
				// console.log("点击:",id)
				if(id==0){
					this.wxImgUrl = "https://huishou.68699.cn/addons/wjyk_recycle/public/static/index/yx.png"
					this.zhifubaoImgUrl = "https://huishou.68699.cn/addons/wjyk_recycle/public/static/index/mx.png"
				}else{
					this.zhifubaoImgUrl = "https://huishou.68699.cn/addons/wjyk_recycle/public/static/index/yx.png"
					this.wxImgUrl = "https://huishou.68699.cn/addons/wjyk_recycle/public/static/index/mx.png"
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
.cash{
	font-size: 29rpx;
	.nav{
		background: #00b388;
		display: flex;
		justify-content: space-between;
		color: #fff;
		padding: 30rpx 40rpx;
	}
	.substance{
		padding: 40rpx 40rpx;
		background: #fff;
		.substance-title{
			font-weight: bold;
		}
		.substance-main{
			display: flex;
			align-items: center;
			padding: 30rpx 0;
			border-bottom: 1px solid #d8d8d8;
			.substance-icon{
				font-size: 30rpx;
			}
			.substanceInput{
				margin-left: 10rpx;
				flex: 1;
				// border: 1px solid #f00;
			}
			.substanceAll{
				color: #00b388;
			}
		}
		.commission{
			margin-top: 30rpx;
		}
	}
	//提现方式
	.method{
		margin-top: 50rpx;
		padding: 40rpx 40rpx;
		background: #fff;
		.substance-title{
			font-weight: bold;
		}
		.means{
			display: flex;
			align-items: center;
			margin-top: 30rpx;
			padding-bottom: 30rpx;
			border-bottom: 1px solid #eeeeee;
			.icon{
				font-size: 70rpx;
			}
			.meansText{
				flex: 1;
				margin-left: 30rpx;
			}
			.meansorder{
				width: 50rpx;
				height: 50rpx;
				image{
					width: 100%;
					height: 100%;
				}
			}
		}
	}
	// 提现按钮
	.cash-account{
		width: 60%;
		margin: 0 auto;
		margin-top: 40rpx;
		text-align: center;
		border-radius: 10rpx;
		padding: 20rpx 0;
		background: #00b388;
		color: #fff;
		// border: 1px solid #000;
	}
}
</style>
